import { MutationTree } from 'vuex';
export const SET_PARAMS = 'SET_PARAMS';
import { TreeState } from './typing';

export const mutations: MutationTree<TreeState> = {
  [SET_PARAMS]: (state, { classifyTree, callTree, dealTree, xqdwTree }) => {
    state.classifyTree = classifyTree;
    state.callTree = callTree;
    state.dealTree = dealTree;
    state.xqdwTree = xqdwTree;
  },
};
